﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LogManager.Gui.ViewModels.Processing;
using Microsoft.Practices.Unity;

namespace LogManager.Gui.Factories
{
    public class ProcessingModelFactory : IProcessingModelFactory
    {
        public readonly IUnityContainer _container;
        public ProcessingModelFactory(IUnityContainer container)
        {
            _container = container;
        }

        public ItemProcessModel CreateItemProcessModel()
        {
            return _container.Resolve<ItemProcessModel>();
        }

        public HierarchicalItemProcessModel CreateHierarchicalItemProcessModel()
        {
            return _container.Resolve<HierarchicalItemProcessModel>();
        }

        public SimpleStatsModel CreateSimpleStatsModel()
        {
            return _container.Resolve<SimpleStatsModel>();
        }
    }
}
